<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>

</body>
</html>

<script type="text/javascript">
	// var arr =[9,8,7,6,5,4]
	// for (var i = 0; i < arr.length-1; i++) {
	// 	for (var j = i+1; j < arr.length; j++)
	// 	 {
	// 		if (arr[i]>arr[j]) {
	// 			var temp = arr[i]
	// 			arr[i] = arr[j]
	// 			arr[j] = temp
	// 		}
	// 	}
	// }
	//alert(arr)

	// function select(arr) {
	// 	for (var i = 0; i < arr.length-1; i++) {
	// 	    for (var j = i+1; j < arr.length; j++)
	// 	        {
	// 			if (arr[i]>arr[j]) {
	// 				var temp = arr[i]
	// 				arr[i] = arr[j]
	// 				arr[j] = temp
	// 			}
	// 		}
	// 	}
	// 	return arr
	// }

	// alert(select([9,8,7,6,5,80,65,34,4]))

</script>

<<!-- script type="text/javascript">
	function jisuan(num) {
		var arr=[]
		while(num){
			arr.push(num%10);
			num = parseInt(num/10);
		}
		arr.reverse()
		return arr

	}
	document.write("这个数是"+jisuan(2367).length+"位数"+",各位数分别为"+jisuan(2367))


</script> -->

<!-- <script type="text/javascript">
	function inteam(arr,team) {
		for (var i = 0; i < arr.length; i++) {
			if (arr[i]==team) {
				return true
			}
			
		}
		return false
		
	}

	alert(inteam([0,1,2,3],1))
</script> -->

<!-- <script type="text/javascript">
	function ean13(num) {
		arr = []
		while(num){
			arr.push(num%10);
			num = parseInt(num/10)

		}
		arr.reverse()
		//alert(arr)
		var jishu = 0;
		var oushu = 0;
		for (var i = 0; i < arr.length; i++) {
			if (i%2==0) {
				jishu+=arr[i]
			}else{
				oushu+=arr[i]
			}
		}
	

		var jiaoyan = 10-(jishu + oushu*3)%10
		if(jiaoyan==10){
			return 0
		}else{
			return jiaoyan
		}
	}
	alert(ean13(345872198028))
</script> -->

<!-- <script type="text/javascript">
	var str1 = "abcabcabcabc"
	var str2 = new string("asb")

	var a = str1.indexOf(str2,4)
	alert(a)
</script> -->

